import request from '@/utils/request'

// 查询供应商列表
export function getSupplier() {
  return request({
    url: '/supchase/index/findSupplier',
    method: 'get',
  })
}

// 查询订单列表
export function listPurchase(query) {
  return request({
    url: '/supchase/index/findAllPurchase',
    method: 'get',
    params: query
  })
}


//更改为已审核
export function putNoCheck(query) {
  return request({
    url: '/supchase/index/changeOK/'+query,
    method: 'get',
  })
}

//更改为审核不通过
export function putOkCheck(query) {
  return request({
    url: '/supchase/index/changeNo/'+query,
    method: 'get',
  })
}



// 订单入库
export function Ruchange(query) {
  return request({
    url: '/supchase/index/RuChange/' + query,
    method: 'delete'
  })
}



// 作废订单
export function deletePur(query) {
  return request({
    url: '/supchase/index/remove/' + query,
    method: 'delete'
  })
}



